package com.composite;

public abstract class OrganizationComponent {

    private String name ;

    private String des ;

    public OrganizationComponent(String name , String des){
        this.name = name ;
        this.des = des ;
    }
    //添加节点
    protected  abstract  void add(OrganizationComponent organizationComponent);
    //删除节点
    protected  abstract  void remove(OrganizationComponent organizationComponent);
    //打印自己直接管辖的对象
    protected abstract void print();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }


}
